package completableFuture;

import org.junit.Test;

import java.util.concurrent.CompletableFuture;

/**
 * @author long
 */
public class TOtherKnowledge {

    @Test
    public void test() {
        // 1:守护线程 ForkJoinPool创建的线程默认是守护线程，所以主线程要阻塞
        CompletableFuture.runAsync(()-> System.out.println("hello world"));

        // 2：创建ForkJoinPool线程池，cpu核数为1是 new Thread，大于1时，创建
    }

}
